* {
    padding: 0;
    margin: 0;
}

body {
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    position: relative;
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
}

i {
    font-style: normal;
}

@font-face {
    font-family: "FZCuJinLJW";
    src: local("FZCuJinLJW"), local("FZDBSJW"), url(../fonts/FZCuJinLJW.ttf) format('truetype');
}

.warehouse {
    display: block;
    position: absolute;
    bottom: 2%;
    right: 2%;
    z-index: 1;
    transition: .3s ease-out;
}

.warehouse img {
    width: 50px;
    height: 50px;
}

.warehouse:hover {
    transform: scale(1.1);
}

/* 侧边导航栏样式 */
.sidebar {
    height: 100%;
    width: 110px;
    position: fixed;
    z-index: 10;
    top: 249px;
    left: 0px;
    transition: left 0.5s ease-out;
}

.sidebar li {
    border-radius: 0px 10px 10px 0px;
    transition: .3s ease-out;
}

.sidebar li a {
    display: block;
    padding: 20px 8px 20px 12px;
    font-size: 18px;
    letter-spacing: 4px;
    color: #fff;
    text-align: center;
    transition: .3s ease-out;
}

.sidebar li:hover {
    box-shadow: 0px 2px 4px 0px rgba(255, 255, 255, .1);
}

.sidebar li a:hover {
    translate: 0px -5px;
}

.toggle-btn {
    position: fixed;
    top: 212px;
    left: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    transition: .3s ease-out;
}

.toggle-btn:active {
    transform: scale(0.7);
}

.sidebar.active {
    margin-left: 0;
}

.sidebar.active {
    left: -250px;
}

/* 导航栏跟随网页状态的样式 */
.nav-link.active {
    transition: .4s ease-out;
}

.nav-link.active {
    border-left: 2px solid red;
}

/* 整个网页的分块样式 */
.container {
    width: 100%;
    height: 100vh;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

span {
    scroll-snap-align: start;
    width: 100%;
    height: 100vh;
    background-blend-mode: multiply;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2em;
}

/* 首页 */
#section1 img:nth-child(1) {
    position: fixed;
    width: 200px;
    top: 30px;
    left: 25px;
    z-index: 5;
}

#section1 img:nth-child(2) {
    width: 60px;
    position: absolute;
    bottom: 0;
    margin: auto;
    z-index: 5;
    animation: down 1.5s linear 0s infinite alternate;
}

@keyframes down {
    from {
        scale: 0.6;
    }

    to {
        scale: 1.1;
    }
}

#section1 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 新闻资讯 */
#section2 {
    background: url(../images/background.png) no-repeat center center;
    background-size: cover;
    box-shadow: inset 5px 0px 200px 100px #000;
}

#section2 .down {
    width: 60px;
    position: absolute;
    bottom: 0;
    margin: auto;
    z-index: 5;
    animation: down 1.5s linear 0s infinite alternate;
}

@keyframes down {
    from {
        scale: 0.6;
    }

    to {
        scale: 1.1;
    }
}

#section2 h1 {
    margin: auto;
    position: absolute;
    top: 8%;
    font-weight: 400;
    font-size: 50px;
    font-family: "FZCuJinLJW", sans-serif;
    cursor: default;
}

#section2 .left {
    width: 500px;
    height: 350px;
}

#section2 .left .carousel-container {
    position: relative;
    overflow: hidden;
    width: 500px;
    height: 262px;
    box-shadow: 4px 4px 9px -3px #000;
}

#section2 .left .carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

#section2 .left .carousel-slide {
    width: 500px;
}

#section2 .left .carousel-dots {
    display: flex;
    justify-content: end;
    margin-top: 10px;
}

#section2 .left .dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    box-shadow: 3px 2px 6px 0px #000;
    display: inline-block;
    transition: all .4s ease-in-out;
}

#section2 .left .dot:hover {
    transform: scale(1.1);
    box-shadow: 3px 2px 9px 0px #000;
}

#section2 .left .dot.active {
    transform: scale(1.2);
    background-color: #717171;
    box-shadow: 3px 2px 9px 0px #000;
}

/* 右边新闻内容 */
#section2 .right .head {
    text-align: center;
}

#section2 .right {
    position: relative;
    width: 550px;
    height: 464px;
    margin-left: 80px;
}

#section2 .news-content {
    margin-top: 15px;
}

#section2 .right .news-content a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    line-height: 20px;
    padding: 15px 15px;
    font-size: 16px;
    color: #fff;
    transition: .3s ease-out;
}

#section2 .right .news-content a:nth-child(odd) {
    background-color: rgba(0, 0, 0, .3);
}

#section2 .right .news-content a:hover {
    color: #d0d0d0;
    translate: 5px 0px;
}

#section2 .right .news-content a p {
    width: 340px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-spacing: normal;
}

#section2 .right .news-content .more {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 5px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    background-color: #fff;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: -4px -4px 9px -3px rgb(133, 33, 255), 4px 4px 9px -3px rgb(255, 141, 141);
    transition: .3s ease-out;
}

#section2 .right .news-content .more:hover {
    color: #000;
    transform: scale(1.1);
}

/* 游戏壁纸 */
#section3 {
    background: url(../images/background2.png) no-repeat center center;
    background-size: cover;
}

#section3 h1 {
    margin: auto;
    position: absolute;
    top: 8%;
    font-weight: 400;
    font-size: 50px;
    font-family: "FZCuJinLJW", sans-serif;
    cursor: default;
}

#section3 .down {
    width: 60px;
    position: absolute;
    bottom: 0;
    margin: auto;
    z-index: 5;
    animation: down 1.5s linear 0s infinite alternate;
}

@keyframes down {
    from {
        scale: 0.6;
    }

    to {
        scale: 1.1;
    }
}

#section3 .border-bz {
    margin-top: 45px;
    width: 75vw;
    height: 70vh;
    /* background-color: pink; */
    z-index: 1;
}

#section3 .main {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#section3 .main .image-item1 {
    width: 37vw;
    height: 70vh;
    overflow: hidden;
}

#section3 .main .image-item1 img {
    height: 75vh;
    translate: -15% -5%;
}

#section3 .main .image-item2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 37vw;
    height: 34vh;
    overflow: hidden;
}

#section3 .main .image-item2 img {
    width: 50vw;
    translate: -15% -5%;
}

#section3 .main .image-item3 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 37vw;
    height: 34vh;
    overflow: hidden;
}

#section3 .main .image-item3 img {
    width: 50vw;
    translate: -15% -15%;
}

#section3 .main img {
    transition: .5s ease-in-out;
}

#section3 .main a:hover img {
    transform: scale(1.1);
}

#section3 .main .icon1 {
    background: url(../images/glass.png) no-repeat center center;
    width: 37vw;
    height: 70vh;
    position: absolute;
    top: 0;
    background-color: rgba(0, 0, 0, .3);
    opacity: 0;
}

#section3 .main .icon2 {
    background: url(../images/glass.png) no-repeat center center;
    width: 37vw;
    height: 34vh;
    position: absolute;
    top: 0;
    background-color: rgba(0, 0, 0, .3);
    opacity: 0;
}

#section3 .main a div {
    transition: .3s ease-in-out;
}

#section3 .main a:hover div {
    opacity: 1;
}

#section3 .main .more {
    z-index: 1;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 5px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: .3s ease-out;
}

#section3 .main .more:hover {
    transform: scale(1.1);
}

/* 游戏衍生 */
#section4 {
    background: url(../images/background3.png) no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#section4 a {
    display: inline-block;
    position: relative;
    width: 33.333vw;
    overflow: hidden;
    opacity: 0.5;
    transition: .3s ease;
}

#section4 .item1 {
    background: url(../images/zb.png) no-repeat center center;
    background-size: cover;
    background-position: 50% 50%;
    height: 100vh;
    overflow: hidden;
    transition: .3s ease-in-out;
}

#section4 .item2 {
    background: url(../images/mh.png) no-repeat center center;
    background-size: cover;
    background-position: 50% 50%;
    height: 100vh;
    overflow: hidden;
    transition: .3s ease-in-out;
}

#section4 .item3 {
    background: url(../images/wiki.png) no-repeat center center;
    background-size: cover;
    background-position: 50% 50%;
    height: 100vh;
    overflow: hidden;
    transition: .3s ease-in-out;
}

#section4 a:hover div {
    transform: scale(1.1);
}

#section4 a:hover+h3 {
    translate: 0px 200px;
}

#section4 a:hover {
    opacity: 1;
}

#section4 h3 {
    letter-spacing: 3px;
    cursor: default;
    user-select: none;
    transition: .5s ease-out;
}

#section4 .frist {
    position: absolute;
    top: 45vh;
    left: 10%;
}

#section4 .second {
    position: absolute;
    top: 45vh;
    left: 45%;
}

#section4 .third {
    position: absolute;
    top: 45vh;
    left: 78%;
}

#section4 h1 {
    position: absolute;
    top: 8%;
    left: 44%;
    z-index: 1;
    font-weight: 400;
    font-size: 50px;
    font-family: "FZCuJinLJW", sans-serif;
    cursor: default;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 11vw;
    background-color: #000;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 15vh;
}

.footer-content img {
    vertical-align: middle;
}

.footer-content img:nth-child(1) {
    width: 13vw;
    margin-right: 35px;
}

.footer-content img:nth-child(2) {
    width: 5vw;
}

.footer-content .left {
    width: 24vw;
}

.footer-content .right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 40vw;
    height: 12vh;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
    padding-left: 40px;
    border-left: 1px solid #bbb;
    word-wrap: normal;
    letter-spacing: 1px;
}

.footer-content .right .frist {
    color: rgba(255, 204, 131, .6);
}

.footer-content .right a {
    text-decoration: underline;
    color: rgba(255, 255, 255, .7);
}

.left .modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.left .modal .modal-content {
    position: relative;
    background-color: #404040;
    margin: 12% auto;
    padding: 20px;
    border: 1px solid #fff;
    width: 40vw;
    height: 50vh;
    overflow: auto;
}

.left .modal .modal-content .close {
    position: absolute;
    top: 0;
    right: 0;
    color: #fff;
    font-size: 40px;
    width: 40px;
    height: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s ease-in-out;
}

.left .modal .modal-content .close:hover {
    color: #c8c8c8;
}

.left .modal .modal-content h4 {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.left .modal .modal-content p {
    font-size: 20px;
    padding: 0px 15px;
}

#modalTrigger {
    cursor: pointer;
}

/* #section2 */
@media screen and (max-width: 1024px) {
    #section2 {
        flex-direction: column;
    }

    #section2 .right {
        position: relative;
        top: 0;
        left: 0;
        width: 550px;
        height: 464px;
        margin-left: 0px;
    }

    #section3 .main {
        flex-direction: column;
        position: relative;
        height: 77vh;
    }

    #section3 .main .image-item1 {
        width: 60vw;
        height: 25vh;
        overflow: hidden;
    }

    #section3 .main .image-item1 img {
        height: 40vh;
        translate: -15% -5%;
    }

    #section3 .main .image-item2 {
        position: absolute;
        top: 26vh;
        left: 76px;
        width: 60vw;
        height: 25vh;
        overflow: hidden;
    }

    #section3 .main .image-item2 img {
        width: 75vw;
        translate: -15% -5%;
    }

    #section3 .main .image-item3 {
        position: absolute;
        top: 52vh;
        left: 76px;
        width: 60vw;
        height: 25vh;
        overflow: hidden;
    }

    #section3 .main .image-item3 img {
        width: 75vw;
        translate: -15% -5%;
    }
}